package usw;

import java.util.Date;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import usw.dao.EmployeeDao;
import usw.entity.Employee;
import usw.service.EmployeeService;


public class App {

	public static void main(String args[])
	{
		BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");

		EmployeeService employeeService = (EmployeeService) factory.getBean("employeeService");

		Employee employee = new Employee();
		employee.setId("8");
		employee.setBirthday(new Date());
		employee.setName("雇员张三");

		//	调用minidao方法
		employeeService.insert(employee);
	}
}
